package br.com.amadeus.android.activities.home;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Environment;
import android.view.Menu;
import android.widget.MediaController;
import android.widget.VideoView;

public class VideoLibrasActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_video_libras);
        VideoView v = (VideoView)findViewById(R.id.videoView1);
        Intent it = getIntent();
        v.setVideoPath(Environment.getExternalStorageDirectory().getPath()+"/amadeus-droid/arquivos/acessibilidade/"+
        		it.getStringExtra("video_libras"));
        v.setMediaController(new MediaController(this));
        v.requestFocus();
        v.start();
        
        
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_video_libras, menu);
        return true;
    }
}
